package com.legendshop.openportal.sdk.model.request;

import com.legendshop.openportal.sdk.model.BaseRequest;
import com.legendshop.openportal.sdk.model.constants.ApiPathConstants;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author jzh
 * @version 1.0.0
 * @title AfterSaleExpressInfoRequest
 * @date 2024/6/29 17:34
 * @description：填写售后运单请求
 */
@Data
public class AfterSaleExpressInfoRequest extends BaseRequest {

    private static final long serialVersionUID = -4683965800078234505L;

    /**
     * 售后编号
     */
    @NotBlank(message = "售后编号不能为空")
    @ApiModelProperty(value = "售后编号", required = true)
    private String refundSn;

    /**
     * 物流公司名称
     * 以快递100的为主
     */
    @NotNull(message = "物流公司名称不能为空")
    @ApiModelProperty(value = "物流公司名称", required = true)
    private String expressName;

    /**
     * 物流单号
     */
    @NotNull(message = "物流单号不能为空")
    @ApiModelProperty(value = "物流单号", required = true)
    private String expressNo;

    @Override
    @ApiModelProperty(hidden = true)
    public String getApiPath() {
        return ApiPathConstants.AFS_EXPRESS_INFO;
    }
}
